<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<s:url value="/css/style.css"/>" rel="stylesheet"
			type="text/css" />
		<link href="<s:url value="/css/jquery.css"/>" rel="stylesheet"
			type="text/css" />
	    <script type="text/javascript" src="<s:url value="/js/common.js"/>"></script>
		<script type="text/javascript" src="<s:url value="/js/jquery.js"/>"></script>
		<script type="text/javascript" src="<s:url value="/js/jquery-ui.js"/>"></script>
		<script type="text/javascript">
		function goSearch(){
			$('#listForm').submit();
		}
		function goExport(){
			location.href='<s:url value="/report/StudentsByCourse/export"/>';
		}
		function goExport(form){
			     form = document.getElementById('listForm');
				 temp = form.action;
				 form.action=form.action.replace('list','export');
		         form.submit();
				 form.action = temp;
			 
		}
		$(function(){
				 
		});
		</script>
		<title><s:text name="system.title" /></title>
	</head>
	<body>
		<s:include value="/common/up.jsp"></s:include>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="box">
					<s:form action="StudentsByCourse/list" name="listForm"
						id="listForm" namespace="/report">
						<table width="100%" border="0" cellpadding="0" cellspacing="0"
							class="searchbg">
							<tr>
								<td>
									Year:
									<s:select id="year" list="{2008,2009,2010,2011,2012,2013}"
										name="year"></s:select>
									Week:
									<s:select id="week"
										list="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52}"
										name="week"></s:select>
									&nbsp;
									<img onclick="javascript:goSearch();"
										src="<s:url value="/img/right/btns.gif"/>" border="0"
										align="absmiddle" />
									<img onclick="goExport(this.form);"
										src="<s:url value="/img/right/Export.gif"/>" border="0"
										align="absmiddle" />
							</tr>
						</table>
						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							class="box2">
							<thead>
								<tr>
									<td class="tablecolour1" width="180px">
										<span class="report1">[F2F]</span>&nbsp; WEEK
										<s:property value="year" />
										<s:property value="week" />
									</td>
									<td class="tablecolour1">
										总提供课量（节）
									</td>
									<td class="tablecolour1">
										总订课人数（人数）
									</td>
									<td class="tablecolour1">
										订课满员数量（节）
									</td>
									<td class="tablecolour1">
										等待学员数量（人）
									</td>
									<td class="tablecolour1">
										等待上的数量（人数）
									</td>
									<td class="tablecolour1">
										实际到课学员数量（人）
									</td>
								</tr>
							</thead>
							<s:iterator value="f2fCount">
								<tr>
									<td class="tablecolour2">
										<s:date name="today" format="E [yyyy-MM-dd]" />
									</td>
									<td class="tablecolour2">
										<s:property value="availableCourseCount" />
									</td>
									<td class="tablecolour2">
										<s:property value="allBookingStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="fullCourseCount" />
									</td>
									<td class="tablecolour2">
										<s:property value="waitingStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="waitingForClassStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="checkinStudents" />
									</td>
								</tr>
							</s:iterator>
						</table>
						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							class="box2">
							<thead>
								<tr>
									<td class="tablecolour1" width="180px">
										<span class="report1">[Workshop]</span>&nbsp; WEEK
										<s:property value="year" />
										<s:property value="week" />
									</td>
									<td class="tablecolour1">
										总提供课量（节）
									</td>
									<td class="tablecolour1">
										总订课人数（人数）
									</td>
									<td class="tablecolour1">
										订课满员数量（节）
									</td>
									<td class="tablecolour1">
										等待学员数量（人）
									</td>
									<td class="tablecolour1">
										等待上的数量（人数）
									</td>
									<td class="tablecolour1">
										实际到课学员数量（人）
									</td>
								</tr>
							</thead>
							<s:iterator value="wkCount">
								<tr>
									<td class="tablecolour2">
										<s:date name="today" format="E [yyyy-MM-dd]" />
									</td>
									<td class="tablecolour2">
										<s:property value="availableCourseCount" />
									</td>
									<td class="tablecolour2">
										<s:property value="allBookingStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="fullCourseCount" />
									</td>
									<td class="tablecolour2">
										<s:property value="waitingStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="waitingForClassStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="checkinStudents" />
									</td>
								</tr>
							</s:iterator>
						</table>

						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							class="box2">
							<thead>
								<tr>
									<td class="tablecolour1" width="180px">
										<span class="report1">[Life Club]</span>&nbsp; WEEK
										<s:property value="year" />
										<s:property value="week" />
									</td>
									<td class="tablecolour1">
										总提供课量（节）
									</td>
									<td class="tablecolour1">
										总订课人数（人数）
									</td>
									<td class="tablecolour1">
										订课满员数量（节）
									</td>
									<td class="tablecolour1">
										等待学员数量（人）
									</td>
									<td class="tablecolour1">
										等待上的数量（人数）
									</td>
									<td class="tablecolour1">
										实际到课学员数量（人）
									</td>
								</tr>
							</thead>
							<s:iterator value="lcCount">
								<tr>
									<td class="tablecolour2">
										<s:date name="today" format="E [yyyy-MM-dd]" />
									</td>
									<td class="tablecolour2">
										<s:property value="availableCourseCount" />
									</td>
									<td class="tablecolour2">
										<s:property value="allBookingStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="fullCourseCount" />
									</td>
									<td class="tablecolour2">
										<s:property value="waitingStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="waitingForClassStudents" />
									</td>
									<td class="tablecolour2">
										<s:property value="checkinStudents" />
									</td>
								</tr>
							</s:iterator>
						</table>



					</s:form>
				</td>
			</tr>
		</table>
		<s:include value="/common/down.jsp"></s:include>
	</body>
</html>